home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d13 / pull230.arc / ADVANCED.DEF next >
Text File  |  1990-10-15  |  5KB  |  159 lines

  1. MAXDEFS=3
  2.  
  3. ' ADVANCED.DEF - Demonstrates the most advanced features of PullDown v2.30
  4. ' Heavily commented source courtesy of Sam Horton, MicroDynamics
  5. ' Last update October 15, 1990
  6.  
  7. DEF
  8. %Prompt Samples
  9.  
  10.  
  11.      '012345678901234567890
  12.      %Sample User-Defined Full Custom HELP Menu
  13.           HI=7
  14.  
  15.           ' This one is particularly slick... and useful.
  16.           ' An entire tutorial/online reference could be defined using
  17.           ' this system with these commands!
  18.  
  19.           SCROLLBOX=SAMPLE.HLP,Sample Help
  20.           ABORT
  21.  
  22.           ' Returns to menu instead of exiting to execute TEMPPULL.BAT
  23.           ' Syntax is SCROLLBOX=HelpFile,HeaderString
  24.           ' Where: HelpFile is a valid DOS file containing only ASCII
  25.           '        HeaderString is a unique header found in the help file,
  26.           '        and the help is ended by ###  ... see PULL215.DOC
  27.  
  28.      '012345678901234567890
  29.      %Build Your Own Batch (Variable Handling Demo)
  30.      ' NOTE: This is fundamentally different from v2.01
  31.      ' with all standard batch facilities available.  See documentation.
  32.      ' In v2.17, not v2.15, the REQUIRED and NOTREQUIRED keywords are
  33.      ' present..........
  34.           HI=6
  35.           OKBOX=You will now interactively build a unique batch file.
  36.           ?Enter Drive as D:  [Enter]=Default
  37.           ?Enter Full CD\Path.. command:  [Enter]=Default
  38.           REQUIRED
  39.           ?Enter Program Execution Command (e.g. 123):  [Required]
  40.           OKBOX=You will now select the file to load on startup.
  41.           LOADFILE=*.*
  42.           +echo off
  43.           +cls
  44.           +%1
  45.           +%2
  46.           +%3 %4
  47.           +PULLDWN
  48.  
  49.  
  50.  
  51.      '01234567890123456789012345
  52.      %Setting up PullDown on a LAN
  53.           HI=25
  54.           ' You could literally have entire menu subsystems
  55.           ' set up in separate directories this way!
  56.           ' Commented out here so that it does not screw up during your
  57.           ' demo run.
  58.           OKBOX=Examine PULL220.DOC to see how this is done!
  59.           ABORT
  60.  
  61.      ' The solo "-" on a %TitleLine defines an UNSELECTABLE bar.
  62.      %-
  63.  
  64.      '012345678901234567890
  65.      %Sample Dialogs
  66.           ' For you REAL power users, here they are all in one.
  67.           ' NOTREQUIRED is the default status of input boxes.
  68.           HI=7
  69.           YORN=Are you sure you want to use this option?
  70.  
  71.           REQUIRED
  72.           ?Sample of Prompting for REQUIRED input:
  73.  
  74.           NOTREQUIRED
  75.           ?Sample of Prompting for Input that can be NUL (Nothing):
  76.  
  77.           OKBOX=Now you will see the powerful file load dialog box.
  78.  
  79.           REQUIRED
  80.           LOADFILE=*.*
  81.  
  82.           OKBOX=This option requires a password.  [Esc]=Quit
  83.           SCROLLBOX=SAMPLE.HLP,Red Herring
  84.           PASS=YouCannotKnowThis
  85.  
  86.           ABORT
  87.  
  88.           ' Password failures ABORT execution.  Since you did not know
  89.           ' that password, you never got to this option.
  90.           ' Used ABORT as this is only a demo file.
  91.  
  92.      '012345678901234567890
  93.      %Sample Dialogs 2
  94.           HI=15
  95.           REQUIRED
  96.           ?Sample of Prompting for REQUIRED input 1/2:
  97.           ?Sample of Prompting for Required Input #2:
  98.  
  99.           OKBOX=You may wish to use this method to prevent any NUL inputs.
  100.           ABORT
  101.           ' As you can see, REQUIRED sticks until toggled OFF with NOTREQUIRED
  102.      %-
  103.      '012345678901
  104.      %Automatic Execution of Commands
  105.          HI=11
  106.          @AUTOEX.DEF
  107.  
  108.      %-
  109.  
  110.      '012345678901234567890
  111.      %About PullDown...
  112.           HI=0
  113.           SCROLLBOX=SAMPLE.HLP,About PullDown...
  114.           ABORT
  115.  
  116. DEF
  117. % Nest Sample
  118.      %Return to Main Menu
  119.           OKBOX=You could have done this by mouse clicking on "PullDown"
  120.           @PULLDWN.DEF
  121.  
  122.           ' An @ command looks either 1) The directory PULLDWN1.EXE is
  123.           ' started from, OR 2) The path defined by SET PULLDWN=PathName
  124.           ' If not found, a dialog is popped telling you so, and you are
  125.           ' prompted for a valid definition file.
  126.  
  127.      %Circle back to this menu
  128.           @ADVANCED.DEF
  129.  
  130.      %Enter WINDOWS menu
  131.           @WINDOWS.DEF
  132.  
  133. DEF
  134. %Exit
  135.      %Return to the Main Menu
  136.  
  137.      ' NOTICE that this is *not* exactly the same string as above ^^
  138.      ' if it was, then the FIRST occurence would be executed.  This
  139.      ' small limitation will disappear upon release of the compiler.
  140.  
  141.           OKBOX=You could have done this by mouse clicking on "PullDown"
  142.           @PULLDWN.DEF
  143.  
  144.      '012345678901234567890
  145.      %Exit to DOS
  146.           HI=1
  147.           YORN=Are you sure?
  148.           OKBOX=Thank you for evaluating PullDown!  Enjoy!
  149.           +echo off
  150.           +cls
  151.           +echo Type PULLDWN [ENTER] to return to PullDown.
  152.           +echo.
  153.  
  154. ' End of ADVANCED.DEF file.
  155. ' SLH 10/90
  156. ' Please consider supporting shareware!  Thank you.
  157.  
  158.  
  159.